package com.etc.serviceimpl;

import javax.annotation.Resource;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;

import com.etc.dao.BlogDao;
import com.etc.entity.Blog;
import com.etc.service.BlogService;

@Service(value="blogService")
public class BlogServiceImpl implements BlogService {
	
	//注入BlogDao
	@Resource(name="blogDao")
	private BlogDao blogDao;

	@Override
	public Blog getBlog() {
		// TODO Auto-generated method stub
		return blogDao.getBlog();
	}

}
